﻿using _10_HPBar.CharacterBase;
using _10_HPBar.GameFrame.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _10_HPBar.Items.Base
{
    internal class Consumable : Item
    {
        public int Hp { get; protected set; }
        public int Mp { get; protected set; }
        public Consumable(int id, string name, string description,int hp,int mp) : base(id, name, description)
        {
            hp = Hp;
            mp = Mp;
        }

        public void Use(IAttack? target)
        {
            if (target == null)
                return;
            target.Hp += Hp;
            target.Mp += Mp;
        }
    }
}
